package com.sharemarking.wa.platform.controller;


import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.ReceiptManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RequestMapping("receiptManagement")
@RestController
public class ReceiptManagementController {
    @Autowired
    ReceiptManagementService receiptManagementService;


    /**
     * 获取运费清单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getOrderLists")
    public ResponseParams<?> getOrderLists() throws Exception {
        return receiptManagementService.getOrderLists();
    }

    /**
     * 获取运费清单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getOrderDetail")
    public ResponseParams<?> getOrders() throws Exception {
        return receiptManagementService.getOrders();
    }


    /**
     * 获取已开票记录列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getReceiptList")
    public ResponseParams<?> getReceiptList() throws Exception {
        return receiptManagementService.getReceiptList();
    }

    /**
     * 获取已开票记录详情
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getReceiptDetail")
    public ResponseParams<?> getReceiptDetail() throws Exception {
        return receiptManagementService.getReceiptDetail();
    }


    /**
     * 获取订单明细列表
     * @return
     * @throws Exception
     */
//    @RequestMapping(value = "getOrderList")
//    public ResponseParams<?> getOrderList() throws Exception {
//        return receiptManagementService.getOrderList();
//    }



    /**
     * 提交发票记录
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "submitReceipt")
    public ResponseParams<?> submitReceipt() throws Exception {
        return receiptManagementService.submitReceipt();
    }


    /**
     * 获取开票抬头
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getReceiptHead")
    public ResponseParams<?> getReceiptHead() throws Exception {
        return receiptManagementService.getReceiptHead();
    }



    /**
     * 新增或编辑开票抬头
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "addReceiptHead")
    public ResponseParams<?> addReceiptHead() throws Exception {
        return receiptManagementService.addReceiptHead();
    }
















}
